package cn.zians.utils;

/***
 * 2020 8.28 12:14
 * @param <T>
 */
public class GeneralResult<T> {
    private T data;             //封装业务处理结果
    private Boolean flag;//执行业务标记，true或false
    private String msg;     //封装一些提示信息，包括异常信息的封装
    private Integer code;//状态码可根据不同异常信息进行编制，创建一个静态的Code类

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}

